package com.unhz.generator.utils;

import java.util.HashMap;
import java.util.Map;

public class SmsUtil {

	//创建一个hashmap
	private static Map<String, Map<String,String >> sms=new HashMap<String, Map<String,String >>();
	//手机号封装
	public static Map<String,String > getSmsCode(String phone){
		return sms.get(phone);
	};
	//存手机号 两条消息
	public static void addSmsCode(String phone,Map<String,String > smsInfo){
		sms.put( phone, smsInfo);
	};
	//删除手机号
	public static void removeSmsCode(String phone){
		sms.remove(phone);
	};
}

